package com.game.raceroom.player.contrl
{
	 
	import com.game.raceroom.SkillBarCanvas;
	import com.game.raceroom.events.GameCanvasKeyboardEvent;
	
	import mx.containers.Canvas;
	import mx.core.UIComponent;
	
	public class KeyboardContrl extends  Contrl
	{
		private var gameCanvasKeyboardEvent:GameCanvasKeyboardEvent;
		public function KeyboardContrl(gameCanvas:UIComponent)
		{
			super(gameCanvas);
		}
		public function setGameCanvasKeyboardEvent(stage:Canvas,actorContrl:ActorContrl,skb:SkillBarCanvas):void{
			gameCanvasKeyboardEvent=new GameCanvasKeyboardEvent(stage,actorContrl,skb);
		}
		public function destroy():void{
			gameCanvasKeyboardEvent.destroy();
			gameCanvasKeyboardEvent=null;
		}
		
	}
}